package com.xiongtian.springframework.beans.factory.config;

/**
 * @Author: xiongtian
 * @CreateTime: 2025-03-25  10:19
 * @Version: 1.0
 * @Description: 单例注册接口
 */

public interface SingletonBeanRegistry {


    /**
     * 获取单例Bean
     *
     * @param beanName Bean名称
     * @return Bean对象
     **/
    Object getSingleton(String beanName);


    /**
     * 注册单例Bean
     *
     * @param beanName        Bean名称
     * @param singletonObject Bean对象
     */
    void registerSingleton(String beanName, Object singletonObject);
}
